/**
 * Copyright 2012 Fonfon.Fenceer
 * All rights reserved.
 * 
 * @project 
 * @author Fonfon.Fenceer
 * @version 1.0
 * @data 2012-3-13
 */
package com.guidecaptain.java.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectKey;

import com.guidecaptain.java.model.pojo.Card;

/**
 *  
 * @author fonfon
 */
public interface CardMapper {
	
//	@Insert("insert into card (card_name,gmt_creat) values (#{cardName},now())")
//	@SelectKey(statement="SELECT LAST_INSERT_ID() AS ID ",keyProperty="cardId",resultType=int.class, before = true)
	int insertCard(Card card);
	
	@Delete("delete from card where card_id=#{cardId}")
	int deleteCard(int cardId);

	int updateCard(Card card);
	
	List<Card> queryCardList();
}
